//
//  YSOrderReviewCell.m
//  Yueshi
//
//  Created by Northwan on 15/9/30.
//  Copyright © 2015年 悦食中国. All rights reserved.
//

#import "YSOrderReviewCell.h"

@interface YSOrderReviewCell()

@end

@implementation YSOrderReviewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"YSOrderReviewCell";
    YSOrderReviewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[YSOrderReviewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        YSOrderReviewItemView *itemView =  [[YSOrderReviewItemView alloc]init];
        self.itemView = itemView;
        [self addSubview:itemView];
    }
    return self;
}

-(void)setReviewFrame:(YSOrderReviewFrame *)reviewFrame{
    _reviewFrame = reviewFrame;
    _itemView.reviewFrame = reviewFrame;
}

@end
